<thead>
	<th><input type="checkbox" id="checkAll" /></th>
	<th>STT</th>
    <th>Đơn vị</th>
    <th>Nhân viên chuyên quản</th>
    <th>Danh sách điện thoại</th>
    <th>Danh sách email</th>
    <th>Sửa</th>
    <th>Xoá</th>
    <th></th>
</thead>
<tbody>
	<?php $i=1; 
	foreach($datas as $item){
	
		?>
        <tr>
        	<td class="tcenter"><input name="keys[]" type="checkbox" id="<?=$item->id;?>"/></td>
            <td style="text-align:center !important;" class="tcenter"><?=$i;?></td>
            <td ><?=$item->tendonvi;?></td>
            <td ><?=$item->tennvcq;?></td>
            <td ><?=$item->dsdienthoai;?></td>
            <td ><?=$item->dsemail;?></td>
            <td class="tcenter pleft15">                  
                <?php if(isset($rights['edit'])){?>
            	<a href="<?=base_url()?>smsemail/edit/<?=$item->id;?>.html"><span class="icon icon-edit w20 h20 dblock fleft mleft5 c04aeda" id="<?=$item->id;?>"></span></a>
                <?php }?>
            </td>
            <td class="tcenter pleft15">
                <span class="delete icon icon-delete w20 h20 dblock fleft" id="<?=$item->id;?>"></span>
            </td>
            <td></td>
        </tr>
    <?php $i++;}?>
</tbody>